<template>
	<view class="chart-legend">
		<view class="legend-section" style="flex: 0.6;">
			<view class="circle-dot" style="background-color: #C23531;"></view>
			<view class="line-name">{{titleRed}}</view>
		</view>
		<view class="legend-section" v-if="titleBlue" style="padding-left:10upx;flex: 0.94;">
			<view class="circle-dot" style="background-color: #2F4554;"></view>
			<view class="line-name" >{{titleBlue}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			titleRed: String,
			titleBlue: String
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style>
	.chart-legend{
		display: flex; 
		flex-direction: row;
		height: 24upx;
		margin: 0upx 15upx 50upx 15upx;
	}
	.legend-section{
		display: flex;
		flex-direction: row;
		width: 0px;
		flex: 1;
		height: 24upx;
	}
	.circle-dot{
		width: 16upx;
		height: 16upx;
		margin-top: 4upx;
		margin-right: 10upx;
		border-radius: 50%;
	}
	.line-name{
		width: 0px;
		flex: 1;
		line-height : 24upx;
		color: #999999;
		font-size: 28upx;
		text-align: left;
		font-family: Helvetica;
	}
</style>
